package com.cskaoyan.mapper;

import com.cskaoyan.bean.brand.po.BrandPO;
import com.cskaoyan.bean.brand.vo.BrandCreateDataVO;
import com.cskaoyan.bean.po.MarketBrand;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author chenai
 * @description TODO
 * @date 2022-06-05 15:15
 */
public interface BrandMapper {

    List<BrandPO> select(@Param("sort")String sort, @Param("order") String order, @Param("id") Integer id, @Param("name") String name);

    int insertReturnId(@Param("desc") String desc, @Param("name") String name, @Param("picUrl") String picUrl, @Param("floorPrice") BigDecimal floorPrice,@Param("date") Date date);

    //逻辑删除记录，使deleted改为true
    void deleteByPrimaryKey(@Param("id") Integer id,@Param("date") Date date);

    void updateByPrimaryKey(@Param("id") Integer id,@Param("name") String name,@Param("desc") String desc,@Param("picUrl") String picUrl,@Param("floorPrice") BigDecimal floorPrice,@Param("date") Date date);
}
